package com.example.server;

import java.util.List;

public interface SysServer {

    public static final String SQL = "select * from sys_lock where id = 1 for update";

    public static final String ROOT = "/";

    public static final String PREF = "/";

    public static final String COLON = ":";

    public static final String SERVER = ROOT + "server";

    public static final String REFRESH = ROOT + "refresh";

    public static final String DISPATCHER = ROOT + "dispatcher";

    public static final String APP_SERVER = "app.serverkey";

    public static final String MAVEN_TOMCAT_PORT = "maven.tomcat.port";

    public static final String SERVER_PORT = "server.port";

    public void init();

    public void registerServer();

    public void registerRefreshEvent();

    public String getServerKey();

    public List<String> getServerKeyList();

    public void serverOfflineHandler(String serverKey);

    public void notifyAllServersToRefresh(Long syncTime);

}
